package com.hzqy.persistence.dao.statistics;

import java.util.List;
import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Repository;

import com.hzqy.persistence.dao.core.PersistenceDao;
import com.hzqy.web.vo.PmsUserVo;
import com.hzqy.web.vo.statistics.UserListenHistoryVo;

@Repository
public class CustomerOnDemandListenDao extends PersistenceDao<PmsUserVo, Integer>{
	protected final Logger LOG = LoggerFactory.getLogger(CustomerOnDemandListenDao.class);
	
	/**
	 * 根据条件统计查询数量
	 * @param map
	 * @return
	 */
	public int selectListenHistoryCustomerOnDemandByStatisticalDimensionCount(Map<String, Object> map) {
		return getSqlSession().selectOne(this.getNamespace()+"selectListenHistoryCustomerOnDemandByStatisticalDimensionCount",map);
	}
	
	/**
	 * 根据条件统计查询数据
	 * @param map
	 * @return
	 */
	public List<UserListenHistoryVo> selectListenHistoryCustomerOnDemandByStatisticalDimensionList(Map<String, Object> map) {
		String namespace = this.getNamespace();
		return getSqlSession().selectList(namespace + "selectListenHistoryCustomerOnDemandByStatisticalDimensionList", map);
	}
	
}
